package com.qys.training.base.enumerate;

/**
 * 业务代码枚举
 */
public enum BizCodeEnum {

    SUCCESS("SUCCESS", "操作成功"),
    ERROR("ERROR", "操作失败"),
    UNKNOWN_ERROR("UNKNOWN_ERROR", "未知异常"),
    USER_EXISTED("USER_EXISTED", "用户已存在"),
    MKDIR_ERROR("MKDIR_ERROR", "创建文件夹失败"),
    UPLOAD_ERROR("UPLOAD_ERROR", "文件上传失败"),
    ID_ERROR("ID_ERROR", "无此ID的文件"),
    DELETE_ERROR("DELETE_ERROR", "删除失败");

    private String code;
    private String description;

    BizCodeEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
